package io.qifan.desktop.api.device;

import io.qifan.desktop.api.auth.FeignTokenInterceptor;
import io.qifan.desktop.common.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "device", url = "http://desktop-server:8080", path = "device",configuration = FeignTokenInterceptor.class)
public interface DeviceFeignClient {
    @GetMapping("findByName")
    R<DeviceDto> findByName(@RequestParam("deviceName") String deviceName);
}
